package com.huangliusong.demo5;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringDemo5 {
    @Test
    public void demo1(){
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");
       CollectionBean collectionBean=(CollectionBean) applicationContext.getBean("collectionBean");
       System.out.println(collectionBean);
    }
}
